<!--#include file="Config.asp" -->
<!--#include file="HeadTop.asp"-->

<%
userid=session("AnyPIM_userID")
%>

<table class="table table-condensed">
<TR>
<FORM action='ContactSave.asp?ActionType=SaveAddContact' method='post'>
<TD noWrap vAlign='top'>

<table class="table table-condensed table-bordered">
<TR bgcolor='#ccff99'><TD colspan='2'>新增联系人</TD></Tr>

<!--  -->
<TR bgcolor='#ffffff'>
<TD width='10%'><FONT color=#ff0000>*</FONT>姓名：</TD>
<TD >
<INPUT name=name>
<select name="Sex">
	<option value="1" selected>男</option>
	<option value="0">女</option>
</select>
</TD>
</TR>
<!--  -->
<TR bgcolor='#ffffff'>
<TD>西历生日：</TD>
<TD>
<select name="birthMon">
<%For mon=1 To 12%>
<option value="<%=mon%>"><%=mon%>月</option>
<%next%>
</select>
<select name="birthDay">
<%For d=1 To 31%>
<option value="<%=d%>"><%=d%>日</option>
<%next%>
</select>
</TD>
</TR>
<!--  -->
<TR bgcolor='#ffffff'>
<TD>添加到分组:</TD>
<TD>
<%
sql="select * from Contact_Group where userid='"&userid&"'"
rs.open sql,conn,1,1
GNum=rs.recordcount
If GNum<>0 Then
%>

<SELECT name='Gid'>
<%
for r=1 to rs.recordcount
%>
<OPTION value=<%=rs("gid")%>><%=rs("agroup")%></OPTION>
<%
rs.movenext
Next
%>
</SELECT>

<%
Else
%>
<a href="ContactGroupAdmin.asp?FbcID=3">请添加联系人分组</a>
<%
End if
rs.close
%>
</TD>
</TR>
<!--  -->
<TR bgcolor='#ffffff'>
<TD>备 注：</TD>
<TD>
<TEXTAREA cols=47 name=remark rows=4 wrap=virtula></TEXTAREA>
</TD>
</TR>

</TABLE>

<%
If GNum<>0 Then
%>
<INPUT type=submit value='保存到通讯录'>
<%
Else
%>
<a href="ContactGroupAdmin.asp?FbcID=3">请添加联系人分组</a>
<%
End if
%>
</TD>
</FORM>

<TD noWrap vAlign='top' width='200'>
	<!-- 分组开始 -->
	<!--#include file=IncContactGroup.asp -->
	<!-- 分组结束 -->
</TD>
</TR>
</TABLE>


<!--#include file=Foot.asp -->